package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderWithDetailVO;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    void payment(OrdersPaymentDTO ordersPaymentDTO);

    void paySuccess(String orderNumber);

    PageResult pageQuery(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderWithDetailVO getOrderWithDetailById(Long id);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    void delivery(Long id);

    void complete(Long id);

    PageResult userPageQuery(OrdersPageQueryDTO ordersPageQueryDTO);

    void repetition(Long id);

    List<Orders> getOrdersTimeOut(Integer unPaid, LocalDateTime localDateTime);

    void reminder(Long id);
}
